
//name spacing
var ValidationRules=ValidationRules || {};

ValidationRules.Rules =[
    {
        elementName:'#nameInput',
        validators:['required','minlength'],
        errorMessage:["Please enter a valid name","Please enter atleast 5 characters"],
        params:[true,5]
    },
    {
        elementName:'#emailInput',
        validators:['required','email'],
        errorMessage:["Please enter a valid email","Please enter a valid Input"],
        params:[true,true]
    },
    {
        elementName:'#addressInput',
        validators:['required'],
        errorMessage:["Please enter a valid street address"],
        params:[true]
    },
    {
        elementName:'#phoneInput',
        validators:['required'],
        errorMessage:["please enter a valid phone"],
        params:[true]
    }
];